package com.example.springboot.domain.po;

import cn.hutool.core.annotation.Alias;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @Author：伐柯梦姝
 * @Package：com.example.springboot.domain.po
 * @Project：springboot
 * @name：Account
 * @Date：2025/2/5 10:23
 * @Filename：Account
 * @for:
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName("admin")
public class Account {
       @TableId
       private Integer id;
       @Alias("用户名")
       @TableField("username")
       private String username;
       @TableField("password")
       private String password;
       @Alias("年龄")
       @TableField("age")
       private Integer age;
       @Alias("电话")
       @TableField("phone")
       private String phone;
       @Alias("性别")
       @TableField("gender")
       private String gender;
       @Alias("角色标识")
       @TableField("role")
       private Integer role;
       @TableField("avatar")
       private String avatar;
       @Alias("档案信息")
       @TableField("archival")
       private String archival;
       @TableField(exist = false)
       @JsonProperty("nmm")
       private String nmm;
}